package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PinkoCurrencyfieldsMapper;
import com.ruoyi.system.domain.PinkoCurrencyfields;
import com.ruoyi.system.service.IPinkoCurrencyfieldsService;

/**
 * 币种自定义字段信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class PinkoCurrencyfieldsServiceImpl implements IPinkoCurrencyfieldsService 
{
    @Autowired
    private PinkoCurrencyfieldsMapper pinkoCurrencyfieldsMapper;

    /**
     * 查询币种自定义字段信息
     * 
     * @param id 币种自定义字段信息主键
     * @return 币种自定义字段信息
     */
    @Override
    public PinkoCurrencyfields selectPinkoCurrencyfieldsById(Long id)
    {
        return pinkoCurrencyfieldsMapper.selectPinkoCurrencyfieldsById(id);
    }

    /**
     * 查询币种自定义字段信息列表
     * 
     * @param pinkoCurrencyfields 币种自定义字段信息
     * @return 币种自定义字段信息
     */
    @Override
    public List<PinkoCurrencyfields> selectPinkoCurrencyfieldsList(PinkoCurrencyfields pinkoCurrencyfields)
    {
        return pinkoCurrencyfieldsMapper.selectPinkoCurrencyfieldsList(pinkoCurrencyfields);
    }

    /**
     * 新增币种自定义字段信息
     * 
     * @param pinkoCurrencyfields 币种自定义字段信息
     * @return 结果
     */
    @Override
    public int insertPinkoCurrencyfields(PinkoCurrencyfields pinkoCurrencyfields)
    {
        return pinkoCurrencyfieldsMapper.insertPinkoCurrencyfields(pinkoCurrencyfields);
    }

    /**
     * 修改币种自定义字段信息
     * 
     * @param pinkoCurrencyfields 币种自定义字段信息
     * @return 结果
     */
    @Override
    public int updatePinkoCurrencyfields(PinkoCurrencyfields pinkoCurrencyfields)
    {
        return pinkoCurrencyfieldsMapper.updatePinkoCurrencyfields(pinkoCurrencyfields);
    }

    /**
     * 批量删除币种自定义字段信息
     * 
     * @param ids 需要删除的币种自定义字段信息主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencyfieldsByIds(Long[] ids)
    {
        return pinkoCurrencyfieldsMapper.deletePinkoCurrencyfieldsByIds(ids);
    }

    /**
     * 删除币种自定义字段信息信息
     * 
     * @param id 币种自定义字段信息主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencyfieldsById(Long id)
    {
        return pinkoCurrencyfieldsMapper.deletePinkoCurrencyfieldsById(id);
    }

    public int deleteByFatherId(long fatherId)
    {
        return pinkoCurrencyfieldsMapper.deleteByFatherId(fatherId);
    }

    public List<PinkoCurrencyfields> getByFatherId(long fatherid)
    {
        return pinkoCurrencyfieldsMapper.getByFatherId(fatherid);
    }
}
